package com.zipsted.proto;

import org.jbox2d.dynamics.Body;
import org.jbox2d.dynamics.BodyDef;
import org.jbox2d.dynamics.BodyType;
import org.jbox2d.dynamics.World;

import javax.media.opengl.GL;
import javax.media.opengl.GL2;
import javax.media.opengl.GLAutoDrawable;

/**
 * Created by zipSTED LLC.
 * User: edgar
 * Date: 14.10.11
 * Time: 17:24
 */
public class CustomObject implements UnifiedObject {
  private Body customBody;

  @Override
  public void init(World world) {
    BodyDef bodyDef = new BodyDef();
    bodyDef.type = BodyType.DYNAMIC;
    bodyDef.position.set(0, 0);
    customBody = world.createBody(bodyDef);
  }

  @Override
  public void init(World world, float x, float y) {
    BodyDef bodyDef = new BodyDef();
    bodyDef.type = BodyType.DYNAMIC;
    bodyDef.position.set(0, 0);
    customBody = world.createBody(bodyDef);
  }

  @Override
  public void render(GLAutoDrawable drawable) {
    final GL2 gl = drawable.getGL().getGL2();
//    gl.gl

    //TODO: Auto-generated! Should be replaced by real code.
  }

}
